
#{set title:'postTopic View' /}


<form action="@{Topics.postTopic()}" method="GET">
	Title: <br><br>
	${title}
	<br><br>
	Type: <br><br>
${type}
<br><br>
Content:	<br><br>
${content}
<br><br>
	
	If you want to post an idea on this topic, 
	<a href ="@{Ideas.createIdeaInTopic()}">click here </a>


</form> 
<br><br> <br>
#{if id !=null}
<form NAME="SpammingTopic" ACTION="@{Topics.toSpamTopic()}" METHOD="post">
<input type = "hidden" name ="id" id = "id" value =${id}>
<input type = "submit" name ="Spam" value = "Spam">
</form>
#{/if}
#{else}
sorry but the no topic is chosen so you can't spam the topic'
#{/else}

<br>
#{if topic !=null}
<FORM NAME="addingTag" ACTION="@{Ttags.tagMyTopics()}" METHOD="post">
	Add a Tag :- <INPUT TYPE="text" NAME="tag" id="tag">
	<P>
		<input type="hidden" name="taggedIdeaId" id="taggedTopicId" value=${topic.id}>
		<INPUT TYPE="submit" NAME="Add Tag" Value="Add Tag">
</FORM>
#{/if}
#{else}
sorry but the no topic is chosen so you can't add a Tag'
#{/else}